-
Notifications
You must be signed in to change notification settings - Fork 786
[SYCL] Profile host events only if the submitted queue has profiling enabled #18982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ng enabled Currently profiling for host tasks is tracked no matter what. Track it only if the queue, where host task is submitted, has profiling enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if this was a bug or a case of changing requirements/design decisions?
I believe this is a bug, according to spec 4.6.6. Event class:
Also this can be considered as performance bug as well. |
syclcompat/kernel/kernel_win.cpp failure is unrelated and known: #17561 |
Currently profiling for host tasks is always enabled. Track profiling info only if the submitted queue (where host task is submitted) has profiling enabled.
This is a bug, according to SYCL specification 4.6.6. Event class:
"Calls to get_profiling_info must throw an exception with the errc::invalid error code if the SYCL queue which submitted the command group this SYCL event is associated with was not constructed with the property::queue::enable_profiling property."
This can be considered as performance bug as well.